class Config:
    HOSTNAME = "127.0.0.1"
    PORT = 3306
    USERNAME = "user01"
    PASSWORD = "123456"
    DATABASE = "smart_plateform"
    SQLALCHEMY_DATABASE_URI = f"mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}?charset=utf8mb4"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    MAIL_SERVER = "smtp.qq.com"
    MAIL_PORT = 465
    MAIL_USE_SSL = True
    MAIL_USERNAME = "1071987081@qq.com"
    MAIL_PASSWORD = "ebsgfvkdgxmdbeif"
    MAIL_DEFAULT_SENDER = "1071987081@qq.com"
    SESSION_TYPE = "filesystem"
    UPLOADED_FOLDER = "uploads/"
    HOMEWORKS_FOLDER = "homeworks/"
    SUBMITWORKS_FOLDER = "submitworks/"
    ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'zip', 'rar', 'doc', 'docx'}
    CACHE_TYPE = "RedisCache"
    CACHE_REDIS_URL = "redis://127.0.0.1:6379/0"
    JWT_SECRET_KEY = "xcKong"
